package com.zl.repository;


import com.zl.model.User;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class UserRepository {
    @Resource(name = "user_user2")
    private User user;
    public void doUserRepository(){
        System.out.println("doUserRepository");
        System.out.println("userId:"+user.getId()+" userName:"+user.getName());
    }
}
